<?php

namespace app\yunda\validate;
use think\Validate;
class Danhao extends Validate
{
    //定义验证规则
    protected $rule = [
        'order_sn|快递单号' => 'require|number|length:13|unique:yd_danhao',

    ];

    //定义验证提示
    protected $message = [
        'order_sn.length' => '韵达快递单号必须是13位数字',
    ];
}
